package com.king01.dao;

import com.king01.entity.Branch;
import com.king01.entity.Role;
import com.king01.entity.Staff;
import com.king01.vo.BranchVo;
import com.king01.vo.Staff02vo;
import org.apache.ibatis.annotations.Param;
import com.king01.vo.SessionVo;

import java.util.List;

public interface BranchDao {

    //查询店铺表
    public List<Branch> allBranch();
    public List<Branch> allBranch(SessionVo sessionVo);
    
    //查询店铺表
    public List<Branch> allBranch2(Integer branchid);
    public List<Branch>findAll(Integer staffid);

    //查询店铺信息
    public List<Branch>selectAllBranchAndStaff(BranchVo branchVo);

    //模糊查询
    List<Branch> queryBranchInfoBybranchname(Branch branchname);

    //添加新的店铺及信息
    Integer insertNewBranch(Branch branch);

    //修改店铺
    Integer UpadteBranch(Branch branch);

    Integer adjustBranch(Branch branch);

    Integer upStaff(Staff02vo staff02vo);

    Integer upBranch(Staff02vo staff02vo);

    //获取所有可能的店长
    List<Staff> selectAll();
    //修改branch表

    Integer updateDate(Staff staff);
    // 修改staff表
    Integer updateStaff(Staff staff);

//    查找店长对应部门名
    public String findDeptNameByStaffId(@Param("branchid") Integer branchid);
}
